{% extends "base.html" %}
{% load i18n %}
{% block content %}
<div class="content">
  <form {% if picture_update %}
        action="/picture/{{ pic.key.id }}/update"
        {% else %}
        action="/album/{{ album.key.id }}/upload"
        {% endif %}
        method="post"
	    enctype="multipart/form-data">
    <div class="formrow">
      <label>{% trans "choose picture" %}</label>
      <input type="file" name="picfile">
    </div>
    <div class="formrow">
      <input type="submit" value="{% trans 'upload' %}">
      {% if picture_update %}
      <a href="/picture/{{ pic.key.id }}" class="form_cancel">{% trans "cancel" %}</a>
      {% else %}
      <a href="/album/{{ album.key.id }}" class="form_cancel">{% trans "cancel" %}</a>
      {% endif %}
    </div>
  </form>
</div>
<div class="side">
  {% include 'user_link.html' %}
</div>
{% endblock %}
